package com.property.manage.model.flowingWater;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDate;

@Data
@TableName("t_flowing_water_expand")
public class FlowingWaterExpandEntity {

    public static final Byte STATE_NORMAL = 0;

    public static final Byte STATE_DELETED = 1;

    /**
     * 正常收费
     */
    public static final Byte OTHER_TYPE_NORMAL = 0;

    /**
     * 欠费收取
     */
    public static final Byte OTHER_TYPE_ARREARS = 1;

    private LocalDate nextTime;
    @TableId(type = IdType.AUTO)
    private Integer id;
    private String serialNumber;
    private String remarks;
    @TableField("`explain`")
    private String explain;
    //票据单号
    private String billNo;
    //开票人
    private String drawer;
    private Integer relationId;
    private BigDecimal money;
    //转存的零钱存入流水
    private BigDecimal small;
    //实收
    private BigDecimal net;
    //使用预存
    private BigDecimal preStorage;
    //当前预存
    private BigDecimal currentDeposit;
    //现金
    private BigDecimal cash;
    private BigDecimal deduction;
    private String listOfCharges;
    private Integer chargeType;
    private String payer;
    private String payee;
    private Integer type;
    private LocalDate paymentTime;
    private Integer villageId;
    private Integer buildingId;
    private String discount;
    private String payType;

    private Byte otherType;
    private Byte state;

    /**
     * 缴费类型
     */
    private String walletType;

    /**
     * 缴费类型-值
     */
    @TableField(exist = false)
    private String walletTypeValue;

}
